import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import 'babel-polyfill'
import store from './store'
import drag from './directives/directive'
axios.defaults.withCredentials = true;
axios.defaults.baseURL = 'http://117.50.73.33:8090/';
//elementui 组件注册
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/global.css'
Vue.use(ElementUI);
import Menu from './components/globalComponents/Menu'

//注册自定义全局组件
Vue.component('bj-menu', Menu);

window.$store = store;

import utils from './utils'
Vue.prototype.$util = utils;


Vue.config.productionTip = false
Vue.prototype.$url = 'http://117.50.73.33:8090/'; //线上
// Vue.prototype.$url = 'http://soso.natapp1.cc/';        //内网穿透
// Vue.prototype.$url = 'http://192.168.31.135:8090/';  //小邓
// Vue.prototype.$url = 'http://192.168.31.182:8090/';     //峰哥
// Vue.prototype.$url = 'http://192.168.31.159:8090/';   //小谢
// Vue.prototype.$url = 'http://192.168.31.28:8090/';     //测试服务器
// Vue.prototype.$url = 'http://192.168.31.227:8090/';   //大洋
Vue.prototype.$domain = 'http://192.168.31.205:8083/'      //小游
// Vue.prototype.$domain = 'http://192.168.31.205:8080/'      //通用
// Vue.prototype.$domain = 'http://www.glkjin.com/'     //线上
Vue.prototype.$http = axios;

window.vm = new Vue({
  el: '#app',
  router,
  store: window === window.top ? window.$store : window.parent.$store,
  components: { App },
  template: '<App/>'
})